Diffused asymmetric encryption/decryption method

ABSTRACT

This invention discloses an asymmetric encryption/decryption method processed by diffusion algebra, and more particularly to a multiplication method using one-dimensional matrix displacement and addition to generate a ciphertext by multiplying a public (or private) key with a plaintext or obtain the plaintext by multiplying the private (or public) key with the ciphertext.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to an asymmetric encryption/decryption method processed by diffusion algebra, and more particularly to a multiplication method using one-dimensional matrix displacement and addition to generate a ciphertext by multiplying a public (or private) key with a plaintext or obtain the plaintext by multiplying the private (or public) key with the ciphertext.

2. Description of the Related Art

A prior art asymmetric encryption/decryption method generates a public key and a private key by two large prime numbers, so as to generate a ciphertext by taking the power of a public (or private) key and obtain the plaintext from the power of the ciphertext. The key safety point of the prior art emphasizes on the product of two large prime numbers, because such value cannot be decoded or restored to prime numbers within a short time, so as to enhance the safety for matching the public and private keys.

SUMMARY OF THE INVENTION

The prior art adopts a power operation, and an increase of the power value of the plaintext varies exponentially with the processing time. Therefore, it is necessary to increase the power value in order to improve the safety, and the length of the plaintext cannot be too long, and it takes even longer time to complete processing the plaintext with an increase of length.

The technical measures taken by the present invention for solving the issues are described as follows:

The operations of diffusion algebra are used to select a matched pair of public key and private key, and the public (or private) key is multiplied with a plaintext to generate a ciphertext, and the private (or public) key is multiplied with the ciphertext to obtain the plaintext.

Compared with the prior art, the differences of the present invention from the prior art reside on that:

1. Prime Number: The prime number used in the prior art is defined as an integer indivisible by any other integer smaller than that integer and requires some time to obtain the value, and the prime number used in the present invention is easily to obtain. For example, if the length of the prime number is equal to 2 to the power of at least one, the prime number will have an odd number of 1 s.

2. Modulus: The prior art includes the operation of a modulus to restrict the content of the plaintext not greater than the modulus, and the present invention does not use the operation of modulus, and thus has no such limitation.

3. Operation: The prior art adopts a power operation or a multi-multiplication, and the present invention directly adopts the multiplication operation, which takes only one multiplication to provide a quick processing.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a flow chart of a public key and a private key according to the present invention; and

FIG. 2 is a flow chart of an encryption and a decryption according to the present invention.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

The asymmetric encryption/decryption method of the present invention directly uses the multiplication of diffusion algebra comprising:

Symbols and Definition of Diffusion Algebra:

S indicates a one-dimensional binary matrix having n positions, where n>0. The position label is shown below: n − 1 n − 2 n − 3 . . . 1 0

e_(i) indicates an element, and the i-th position of S is 1, and the rest are 0.

For example, (a) e₀: [0 00 . . . 0 1] (b) e_(n−1): [1 0 0 . . . 0 0]

indicates a null element, and the positions of S are all 1 or all 0.

For example, (a) ●: [0 0 0 . . . 0 0] (b) ●: [1 1 1 . . . 1 1]

-   -   {circle around (+)} indicates an addition: Two matrixes are         added by diffusion.     -   For example, (a) e_(i){circle around (+)}e_(i)=*(b) S{circle         around (+)}●=S     -   {circle around (+)} indicates a multiplication: Two matrixes are         multiplied by diffusion.     -   For example, (a) e_(i){circle around (×)}e_(j)=e_(i+j) (b)         S{circle around (×)}●=●         (c) (e _(i) {circle around (+)}e _(j)){circle around (×)}e _(k)         =e _(i+k) {circle around (+)}e _(j+k) (d) e _(i) =e _(i mod n)         ,i≧n     -   S^(i) indicates the power of i of S.         -   For example, (a) S⁰=S (b) S¹=S{circle around (×)}S (c)             S^(i){circle around (×)}S^(j)=S^(i+j+1)             (d) (S ^(i))^(j) =S ^((i+1)×(j+1)−1)     -   T indicates a recurring period, S^(T)=S     -   For example, (a) e₀ ¹=e₀ , (b) e_(n−1) ^(n)=e_(n−1)     -   indicates a prime number, S^(T−1)=e₀     -   For example, (a) e_(i) ε P (b) e_(i){circle around (×)}e_(j) ε         P (c) e_(i){circle around (+)}e_(j) ∉ P

Public Key and Private Key:

The length of a matched pair of public key (e) and private key (d) is n, and its generation comprises the following steps as shown in FIG. 1. p,q ε P, and p≠q, and p²≠p, q²≠q;   (1) e{circle around (×)}d=(p{circle around (×)}q)^(n−1);   (2) e=p{circle around (×)}q ^(n−2) , d=p ^(n−2) {circle around (×)}q;   (3)

Encryption and Decryption:

In the structure of diffusion algebra, the product of two numbers cannot be obtained by dividing one of the two numbers and must be obtained by multiplying a corresponding third number, which is the matched pair of public and private keys as shown in FIG. 2: C=M{circle around (×)}e; (Plaintext Encryption)   1 M=C{circle around (×)}d; (Ciphertext Decryption)   2.

Examples of Encryption and Decryption:

To make it easier for our examiner to understand the content of the present invention, the following diffusion multiplication, public key and private key, encryption and decryption, 128-bits and 240-bit embodiments are described in details.

Let a one-dimensional 8-bit matrix be P =[10011101], q=[11011010]:

By Diffusion Multiplication: p{circle around (×)}q=p{circle around (×)}(e ₇ {circle around (+)}e ₆ {circle around (+)}e ₄ {circle around (+)}e ₃ {circle around (+)}e ₁)=p{circle around (×)}e ₇ {circle around (+)}p{circle around (×)}e ₆ {circle around (+)}p{circle around (+)}e ₄ {circle around (+)}p{circle around (×)}e ₃ {circle around (+)}p{circle around (×)}3 ₁=[11001110{circle around (+)}[1100111]{circle around (+)}[11011001]{circle around (+)}[11101100]{circle around (+)}[00111011]=[10100111]

Public Key and Private Key: e=p{circle around (×)}q ^(n−2) =p{circle around (×)}q ⁶=[10011101]{circle around (×)}[11000001]=[00110100] d=p ^(n−2) {circle around (×)}q=p ⁶ {circle around (×)}q=[11011001]{circle around (×)}[11011010]=[01111010]

Encryption and Decryption: M=[00110111] C=M{circle around (×)}e=[00110111]{circle around (×)}[00110100]=01001001] M=C{circle around (×)}d=[01001001]{circle around (×)}[01111010]=[00110111]

In the 128-bit Embodiment, Public Key and Private Key:

The length of 128 bits is equal to 2 to the power 8, and the prime number (P) is selected to have an odd number of is to comply with the conditions, and it is easy to obtain. The recurring period (T) is set directly to the length of 128 bits.

p: Prime Number

-   -   1110000011110100001110111001010101100111         0001111001110000001010101011100000011100         1110110110010000011001111111011101011010 00110110

q: Prime Number

-   -   0111000111010000101101100001111000000100         111111101011011110111100001001101010111         1000100111011011100111110011000111110111 00100001

e: Public Key p{circle around (×)}q¹²⁸⁻²

-   -   1000100000100101001110001011111100101100         1001001010000001011001010001000101101010         1101100100110001001100100110011000000001 11111100

d: Private Key p¹²⁸⁻²{circle around (×)}q

-   -   0110000101011110001100101110011000010000         0000110000100000001100100110101101000010         1111110101100110111001110000001100000011 10101111

Encryption and Decryption:

M: Plaintext

-   -   0011110110010110110101010111000100010010         1000001100001101001111000010101000010101         1010001101001001010000101111001011100101 11001100

C: Encrypt C=M{circle around (×)}e

-   -   1110011011000101000101011100111011001011         1101100111010111110101010111010001010000         1100001111101010101010011101011011111001 01000011

M: Decrypt M=C{circle around (×)}d to obtain the plaintext.

For 240-bit embodiment, Public Key and Private Key:

The length of 240 bits is not in the form of a power of 2, and the prime number(P) is selected to have an odd number of is and S^(T−1)=e₀ and the prime number is searched. The recurring period (T) is set directly to the length of 240 bits.

p: Prime Number

-   -   0010101010000001010110011010010000111011         1010011000001011011011000111000011111111         1000010111110011001000001101011011110110         0101001110010001110110110001100111110110         0111100100111111010111001110010000001001         1011000111010101111111101001111011011010

q: Prime Number

-   -   0110110111110110010110110100101001010111         0000100001111111100110111001100111100011         1101010101110011111000101000001101010100         1111001011101101000110011001001010001011         0011101100001110011100011010010000101110         1010011111110100111010111100001011011101     -   e: Public Key p{circle around (×)}q²⁴⁰⁻²     -   1011110011011011111101100000111110111010         0000111110000100110110010011011010111000         0101000100110000010010010011110000000001         0110000100100101011110011010010100001110         1101011101110110000111000111001111110011         0101101101000001000111010110000011010110

d: Private Key P²⁴⁰⁻²{circle around (×)}q

-   -   1011001000011111001001011011010101010111         1011000010111001010111111111010101111011         1100010000000101111111001110101111010001         0011001010111010101000001011000000111001         0110100101110011101110001011010100100101         1110010111111101101101010001101101001111

Encryption and Decryption:

M: Plaintext

-   -   1010100000010100110110110110100000100101         1000000011111101110100100110101001000000         1101001000110101100000111110101111100110         0101011000101000000001111111101110010111         0001101110110000111010100001001010001110         1100110011000001001111011001000111110000

C: Encrypt C=M{circle around (×)}e

-   -   1011000011010010101100001101001100000111         0001100011011011101110001101011001000100         0100101010011010011001100011100110100101         0111111100100100111001101100011100110010         0010011001000111001010010011010010000110         0001001110001111010000110011110001101110

M: Decrypt M=C{circle around (×)}d to obtain the plaintext.

In this preferred embodiment, the applied multiplication of diffusion algebra is not reversible, and division does not exist in diffusion algebra. Once if a plaintext is multiplied by a key, then the plaintext cannot be restored. Further, a new prime number generated by taking the power of a prime number cannot be restored to the original prime number. In other words, a matched pair of keys, a key cannot be used to compute another key. Finally, two numbers are multiplied by displacement and addition to expedite the processing. With the risk of safety taken into consideration, we can easily increase the bit length of the keys.

While the invention has been described by means of specific embodiments, numerous modifications and variations could be made thereto by those skilled in the art without departing from the scope and spirit of the invention set forth in the claims. 

1. A diffused asymmetric encryption/decryption method, using the operations of diffusion algebra and comprising the steps of: selecting a matched pair of a public key and a private key; multiplying said public or said private key with a plaintext to generate a ciphertext; and obtaining said plaintext by multiplying said private key or said public key with said ciphertext.
 2. The method of claim 1, wherein the multiplication of said matched public key and private key equals to
 1. 3. The method of claim 1, wherein said matched public key is not equal to said private key.
 4. The method of claim 1, wherein said matched public key and private key have a plurality of 1 s.
 5. The method of claim 1, wherein said plaintext has a plurality of 1 s.
 6. The method of claim 1, wherein said matched public key and private key are the multiplication of the power (T−1) of at least one prime number.
 7. The method of claim 6, wherein said prime number is a numeric value having its (T−1) power equal to
 1. 8. The method of claim 6, wherein said T is a recurring period of said prime number.
 9. The method of claim 6, wherein said T is the length of said matched pair of public key and private key.
 10. The method of claim 6, wherein T is greater than
 2. 11. The method of claim 6, wherein said public key is equal to said prime number, and said private key is equal to the power of (T−2) of said prime number.
 12. The method of claim 6, wherein said public key is equal to the power of (T−2) of said prime number, and said private key is equal to said prime number.
 13. The method of claim 6, wherein said prime number has an odd number of Is.
 14. The method of claim 6, wherein said prime number is a numeric value having a prime number to the power of at least one.
 15. The method of claim 6, wherein said prime number is a multiplication of at least one prime number.
 16. The method of claim 6, wherein said prime number is an addition of at least one odd number of prime numbers.
 17. The method of claim 13, wherein said odd number of Is of prime number has at least one odd position label. 